package org.example.spring.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 聊天对照表
 * </p>
 *
 * @author author
 * @since 2024-05-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("chatting_list")
@ApiModel(value="List对象", description="聊天对照表")
public class ChattingList implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户Id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "聊天对象Id")
    @TableField("other_id")
    private Integer otherId;

    @ApiModelProperty(value = "聊天记录Id")
    @TableField("value_id")
    private Integer valueId;

    @ApiModelProperty(value = "最新消息")
    @TableField("newMsg")
    private String newMsg;

    @ApiModelProperty(value = "类型")
    @TableField("type")
    private Integer type;
}
